/**
 * @desc    获取元素指定样式值
 * @param   {HTMLElement} ele 用于获取计算样式的Element
 * @param   {String} styleName 样式名称
 * @return  {String} 
 */
function eleStyleValue(ele, styleName) {
  const cs = ele && window.getComputedStyle && window.getComputedStyle(ele, null);
  return cs[styleName];
}

export { eleStyleValue };